@echo off
REM Docker镜像构建脚本 (Windows版本)

REM 设置变量
set IMAGE_NAME=ythyw-app
set IMAGE_TAG=latest

echo 开始构建Docker镜像...

REM 构建Docker镜像
docker build -t %IMAGE_NAME%:%IMAGE_TAG% .

if %errorlevel% == 0 (
    echo Docker镜像构建成功!
    echo 镜像名称: %IMAGE_NAME%:%IMAGE_TAG%
) else (
    echo Docker镜像构建失败!
    exit /b 1
)

echo 运行以下命令启动容器:
echo docker run -p 5000:5000 --name ythyw-container %IMAGE_NAME%:%IMAGE_TAG%
pause